#pragma GCC optimize(2, "Ofast", "inline")
#include <iostream>
#include <vector>
#include <map>
#include <cmath>
#include <set>
#include <queue>
#include <stack>
#include <list>
#include <unordered_map>
#include <algorithm>
#define endl '\n'
#define int long long
#define pii pair<int, int>
#define fi first
#define se second
#define int128 __int128_t
using namespace std;

// 已知
string s;
int n;

// 未知


signed main()
{
    cin.tie(0)->ios::sync_with_stdio(false);
    cin >> s >> n;
    if (s.size() < n) cout << "No";
    else cout << "Yes";

    return 0;
}